<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
$this->load->helper('url');
?><!DOCTYPE html>
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<link rel="shortcut icon" href="favicon.ico">
	<link rel="stylesheet" href="/static/css/animate.css">
	<link rel="stylesheet" href="/static/plugin/jquery-ui/jquery-ui.min.css" />
	<link rel="stylesheet" href="/static/plugin/font-awesome/css/font-awesome.min.css" />
	<link rel="stylesheet" href="/static/css/style.css?<?php echo $t;?>">
	<link rel="stylesheet" href="/static/css/user.css?<?php echo $t;?>">
	<script src="/static/js/jquery-1.10.2.min.js"></script>
	
	<script src="/static/plugin/jquery-ui/jquery-ui.min.js"></script>
	<script src="/static/plugin/layer/layer.js"></script>
	<script src="/static/js/jquery.form.min.js"></script>
	<script src="/static/js/extend.js"></script>
	</head>
	
	<body>
	<div class="form-title"><?php echo lang('user_paypwd_tit');?></div>

      <div class="form">
        <form id="form_id" action="<?php echo site_url('safe/paypwd_do');?>" method="post">
			<table>
			
<?php
if ($user['paypwd']) {
?>			<tr>
		    <th><?php echo lang('user_old_paypwd');?></th>
		    <td><input type="password" name="old_password"><p><?php echo lang('user_old_paypwd_warn');?></p></td>
			
			</tr>
			<?php
}

?>			<tr>
            <th width="70"><?php echo lang('user_paypwd');?></th>
		    <td><input type="password" name="password"><p><?php echo lang('user_paypwd_warn');?></p></td>
			<td width="70"></td>
			</tr>
			<tr>
		    <th><?php echo lang('user_repaypwd');?></th>
		    <td><input type="password" name="repassword"><p><?php echo lang('user_repaypwd_warn');?></p></td>
			</tr>
			<tr><th></th><td class="warning"></td></tr>
			<tr>
			<th></th><td><button type="submit"><?php echo lang('user_submit');?></button></td>
			</tr>
		  </table>
		</form>
      </div>
      
</body>
</html>
<script>
$(function(){
	$('#form_id').winForm();
});
</script>